package com.entity;

import java.io.Serializable;

/**
 * @author 
 */
public class News implements Serializable {
    private String nno;

    private Integer mtno;

    private Integer eno;

    private String ntitle;

    private String ncontent;

    private Integer ntype;

    private static final long serialVersionUID = 1L;

    public String getNno() {
        return nno;
    }

    public void setNno(String nno) {
        this.nno = nno;
    }

    public Integer getMtno() {
        return mtno;
    }

    public void setMtno(Integer mtno) {
        this.mtno = mtno;
    }

    public Integer getEno() {
        return eno;
    }

    public void setEno(Integer eno) {
        this.eno = eno;
    }

    public String getNtitle() {
        return ntitle;
    }

    public void setNtitle(String ntitle) {
        this.ntitle = ntitle;
    }

    public String getNcontent() {
        return ncontent;
    }

    public void setNcontent(String ncontent) {
        this.ncontent = ncontent;
    }

    public Integer getNtype() {
        return ntype;
    }

    public void setNtype(Integer ntype) {
        this.ntype = ntype;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        News other = (News) that;
        return (this.getNno() == null ? other.getNno() == null : this.getNno().equals(other.getNno()))
            && (this.getMtno() == null ? other.getMtno() == null : this.getMtno().equals(other.getMtno()))
            && (this.getEno() == null ? other.getEno() == null : this.getEno().equals(other.getEno()))
            && (this.getNtitle() == null ? other.getNtitle() == null : this.getNtitle().equals(other.getNtitle()))
            && (this.getNcontent() == null ? other.getNcontent() == null : this.getNcontent().equals(other.getNcontent()))
            && (this.getNtype() == null ? other.getNtype() == null : this.getNtype().equals(other.getNtype()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getNno() == null) ? 0 : getNno().hashCode());
        result = prime * result + ((getMtno() == null) ? 0 : getMtno().hashCode());
        result = prime * result + ((getEno() == null) ? 0 : getEno().hashCode());
        result = prime * result + ((getNtitle() == null) ? 0 : getNtitle().hashCode());
        result = prime * result + ((getNcontent() == null) ? 0 : getNcontent().hashCode());
        result = prime * result + ((getNtype() == null) ? 0 : getNtype().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", nno=").append(nno);
        sb.append(", mtno=").append(mtno);
        sb.append(", eno=").append(eno);
        sb.append(", ntitle=").append(ntitle);
        sb.append(", ncontent=").append(ncontent);
        sb.append(", ntype=").append(ntype);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}